package com.xyt.imei.core.model.dto;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

import com.xyt.imei.core.meta.ValidateConstants;

import lombok.Data;

@Data
@ExcelTarget("storeExtra")
public class ExtraStoreExcelDTO {

	@Excel(name = "imeiNo")
	@Pattern(regexp = ValidateConstants.REGEXP_IMEI, message = ValidateConstants.MESSAGE_IMEI_INVALID)
	private String imeiNo;
	
	@Excel(name = "激活时间", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd hh:mm:ss")
	@NotNull(message = ValidateConstants.MESSAGE_ACTIVE_DATE_NOT_NULL)
	private Date activeDate;
	
}
